import { parseISO, format } from 'date-fns';

export const formatDate = (dateString: string) => {
  const date = parseISO(dateString);  // Convert the ISO string to a Date object
  return format(date, 'MMMM d, yyyy, p'); // 'p' will print the time in localized AM/PM
};
